﻿using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public class ProductsBUS
    {
        public void Insert(ProductsDTO objDTO)
        {
            new ProductsDAO().Insert(objDTO);
        }
        public DataTable GetList()
        {
            return new ProductsDAO().GetList();

        }
        public bool Delete(int ProductID)
        {
            return new ProductsDAO().Delete(ProductID);
        }
        public void Update(ProductsDTO objDTO)
        {
            new ProductsDAO().Update(objDTO);
        }

        public DataTable GetProductByID(int ID)
        {
            return new ProductsDAO().GetProductByID(ID);
        }
    }
}
